from nester_czx import print_lol
import pickle
new_main= []
try:
    # open() 可以设置访问模式, w表示写
    with open('man_data.txt','rb') as man_file:
        new_main = pickle.load(man_file)
except IOError as err:
    print('File Error',str(err))
except pickle.PickleError as perr:
    print('File Error',str(perr))

try:
    with open('man_data_new.txt','w') as man_data_new:
        print_lol(new_main,fn=man_data_new)
except IOError as err:
    print('File Error',str(err))
